﻿using AutoMapper;

namespace Hx.ADSyncPlatform.AutoMapper
{
    public class AutoMapperConfig
    {

        public static MapperConfiguration RegisterMappings()
        {
            return new MapperConfiguration(cfg =>
            {

                //cfg.AddProfile(new CustomProfile());
                cfg.ForAllMaps((a, b) => b.ForAllMembers(opt => opt.Condition((src, dest, sourceMember) => sourceMember != null)));
            });
        }


    }
}
